package com.aaa.common.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 返回结果工具类
 *
 * @author Xiujie Yu
 * @Date 2021-01-19
 * @Time 15:34
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Result<T> {
    private int resultCode;
    private String resultMessage;
    private T t;

    /**
     * 功能描述:两参构造
     * @param resultCode int
     * @param resultMessage String
     */
    public Result(int resultCode, String resultMessage) {
        this.resultCode = resultCode;
        this.resultMessage = resultMessage;
    }
}
